<template>
    <div class="identity-content">
        <div class="identity-title">
            <img src="../../assets/img/back.png" alt="" @click="backRoute()">
            身份认证
        </div>
        <div class="identity-form">
            <div class="wrap">
                <h2 class="title">实名认证</h2>
                <div class="main-form">
                    <form>
                        <label class="label">
                            <span class="labelName">国籍：</span>
                            <select placeholder="请选择" class="input-item">
                                <option value="1">中国</option>
                                <option value="2">美国</option>
                                <option value="3">英国</option>
                                <option value="4">日本</option>
                                <option value="5">法国</option>
                                <option value="6">韩国</option>
                                <option value="7">德国</option>
                                <option value="8">中国香港</option>
                                <option value="9">中国台湾</option>
                                <option value="10">中国澳门</option>
                                <option value="11">新加坡</option>
                                <option value="12">马来西亚</option>
                                <option value="13">越南</option>
                                <option value="14">韩国</option>
                                <option value="15">尼日利亚</option>
                                <option value="16">南非</option>
                            </select>
                            <span class="error-tip" style="display: none">请选择国籍</span>
                        </label>
                        <label class="label">
                            <span class="labelName">姓：</span>
                            <input placeholder="请填写你的姓氏" class="input-item">
                            <span class="error-tip" style="display: none">请填写您的姓氏</span>
                        </label>
                        <label class="label">
                            <span class="labelName">名：</span>
                            <input placeholder="请填写你的姓氏" class="input-item">
                            <span class="error-tip" style="display: none">请填写你的名字</span>
                        </label>
                        <label class="label">
                            <div class="labelNameblock fixPos">证件类型：</div>
                            <select placeholder="请选择" class="input-item long">
                                <option value="1">居民身份证</option>
                                <option value="2">护照</option>
                                <option value="3">士官证</option>
                                <option value="4">港澳通行证</option>
                                <option value="9">其他</option>
                            </select>
                            <span class="error-tip error-long" style="display: none">请选择证件类型</span>
                        </label>
                        <label class="label label-last">
                            <div class="labelNameblock">证件号：</div>
                            <input placeholder="请填写你的证件号码" class="input-item long">
                            <span class="error-tip error-long" style="display: none">请填写正确的证件号码</span>
                        </label>
                    </form>
                </div>
                <div class="pic-upload">
                    <h3 class="tit">证件图片</h3>
                    <div class="uploader">
                        <div class="avatar-uploader van-uploader">
                            <div>
                                <i class="add-icon"></i>
                                <span class="upload-txt">请上传</span>
                            </div>
                            <input type="file" class="van-uploader__input">
                        </div>
                        <div class="under-txt">上传新图片</div>
                    </div>
                </div>
                <div class="example-wrap">
                    <div class="example">
                        <div class="ex-txt">示例</div>
                        <div class="img">
                            <img src="../../assets/img/false.jpg" alt="">
                        </div>
                        <div class="img">
                            <img src="../../assets/img/true.jpg" alt="">
                        </div>
                    </div>
                    <dl class="notice">
                        <dt>提示</dt>
                        <dd>1.请手持相关证件，照片需要免冠，需本人手持证件；</dd>
                        <dd>2.必须看清晰证件号且证件号不能被遮挡；</dd>
                        <dd>3.照片大小限制在4M以内；</dd>
                    </dl>
                    <a class="admit-btn">提交</a>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'identity'
    }
</script>

<style lang="scss">
    .identity-content{
        width: 100%;
        height: 100%;
        background-color: rgb(247, 247, 247);
        .identity-title{
            width: 100%;
            height: 1rem;
            line-height: 1rem;
            text-align: center;
            font-size: 0.34rem;
            border-bottom: 0.02rem solid #ccc;
            background-color: #fefefe;
            position: relative;
            img{
                width: 0.36rem;
                position: absolute;
                left: 0.2rem;
                top: 0.32rem;
            }
        }
        .identity-form{
            height: calc(100% - 1rem);
            overflow-y: scroll;
            .wrap{
                width: 94%;
                text-align: center;
                margin: 0 auto;
                .title{
                    text-align: left;
                    font-family: PingFangSC-Regular,serif;
                    font-size: 0.32rem;
                    color: #060909;
                    line-height: 0.6rem;
                    margin-top: 0.14rem;
                    border-bottom: 1px solid #e5e5e5;
                    padding-left: 0.5rem;
                }
                .main-form{
                    form{
                        .label{
                            display: block;
                            margin-top: 0.32rem;
                            height: 0.7rem;
                            position: relative;
                            .labelName{
                                display: inline-block;
                                width: 20%;
                                text-align: right;
                                font-size: 0.26rem;
                                color: #1d1d1d;
                                position: absolute;
                                left: 0;
                                top: 0.18rem;
                            }
                            .labelName:before,.labelNameblock:before{
                                content: "*";
                                color: #ff5b5b;
                                margin-right: 0.06rem;
                            }
                            .input-item{
                                width: 75%;
                                height: 0.7rem;
                                background-color: #fff;
                                border: 1px solid #e7e7e7;
                                border-radius: 0.08rem;
                                box-shadow: 0 2px 4px 0 hsla(0,0%,74%,.5);
                                padding-left: 0.2rem;
                                -webkit-appearance: none;
                                position: absolute;
                                right: 5%;
                                outline: none;
                            }
                            .error-tip{
                                color: #e22828;
                                display: block;
                                text-align: right;
                                position: absolute;
                                right: 0.4rem;
                                top: 0.7rem;
                                font-size: 0.24rem;
                            }
                            .labelNameblock{
                                padding-top: 0.14rem;
                                margin-bottom: 0.16rem;
                                text-align: left;
                                padding-left: 0.4rem;
                                font-size: 0.26rem;
                                color: #1d1d1d;
                            }
                            .long{
                                width: 90%;
                            }
                            .error-long{
                                top: 1.35rem;
                            }
                        }
                        .label-last{
                            margin-top: 0.8rem;
                        }
                    }
                }
                .pic-upload{
                    margin-top: 1.57rem;
                    .tit{
                        font-size: 0.24rem;
                        color: #000;
                        font-weight: 400;
                    }
                    .uploader{
                        .avatar-uploader{
                            user-select: none;
                            width: 4rem;
                            height: 3rem;
                            margin: 0.28rem auto;
                            border: 1px solid #e7e7e7;
                            border-radius: 0.04rem;
                            box-shadow: 0 2px 4px 0 hsla(0,0%,74%,.5);
                            color: #b8b8b8;
                            font-size: 0.24rem;
                            overflow: hidden;
                            position: relative;
                            display: inline-block;
                            .add-icon{
                                font-style: normal;
                                display: block;
                                width: 0.8rem;
                                height: 0.8rem;
                                background: url(../../assets/img/add.png);
                                background-size: 100%;
                                margin: 0.87rem auto 0.28rem;
                            }
                            .van-uploader__input{
                                position: absolute;
                                top: 0;
                                right: 0;
                                bottom: 0;
                                left: 0;
                                width: 100%;
                                height: 100%;
                                opacity: 0;
                                cursor: pointer;
                                font-size: 100%;
                                background-color: transparent;
                                border-color: transparent;
                                -webkit-appearance: none;
                            }
                            .van-uploader__input:active{
                                -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
                            }
                        }
                        .under-txt{
                            text-align: center;
                            font-size: 0.24rem;
                            color: #e60816;
                        }
                    }
                }
                .example-wrap{
                    width: 100%;
                    background: #f9f9f9;
                    box-shadow: inset 1px 4px 8px 0 hsla(0,0%,93%,.5);
                    padding-top: 0.32rem;
                    margin-top: 0.8rem;
                    .example{
                        padding-left: 0.5rem;
                        .ex-txt{
                            text-align: left;
                            font-size: 0.24rem;
                            color: #e60816;
                        }
                        .img{
                            margin: 0 auto;
                            overflow: hidden;
                            img{
                                margin-top: 0.2rem;
                                width: 61%;
                                border: 1px solid #e7e7e7;
                                border-radius: 0.04rem;
                                box-shadow: 0 2px 4px 0 hsla(0,0%,74%,.5);
                            }
                        }
                    }
                    .notice{
                        text-align: left;
                        margin-left: 0.8rem;
                        width: 100%;
                        height: 25px;
                        line-height: 25px;
                        font-size: 0.24rem;
                        color: #666;
                        background: #fdf8ef;
                        padding: 0.36rem 0.3rem 0;
                        dt{
                            font-size: 0.24rem;
                            color: #1d1d1d;
                        }
                        dd{
                            font-size: 0.24rem;
                            line-height: 0.33rem;
                            color: #999;
                        }
                    }
                    .notice:after{
                        display: block;
                        width: 0;
                        height: 0;
                        content: "";
                        clear: both;
                    }
                    .admit-btn{
                        display: block;
                        margin: 1.5rem auto 1.5rem;
                        text-align: center;
                        width: 2.4rem;
                        height: 0.6rem;
                        line-height: 0.6rem;
                        border-radius: 0.5rem;
                        background-color: #e60816;
                        font-size: 0.26rem;
                        color: #fff;
                    }
                }
            }
        }
    }
</style>
